]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix disappearing close button
authorFlorian Müllner <florian.muellner@gmail.com>
Mon, 23 Nov 2009 21:42:02 +0000 (22:42 +0100)
committerColin Walters <walters@verbum.org>
Tue, 24 Nov 2009 00:37:56 +0000 (19:37 -0500)
Show the close button after zooming a window in the overview when the
window clone has the pointer focus.

https://bugzilla.gnome.org/show_bug.cgi?id=602772

js/ui/workspaces.js

index 565e557ff757e5f1f783b70b4e74e81c87e5069d..58e982fc0d0ba232b47646af1f7ea2a504f48a88 100644 (file)
@@ -367,6 +367,12 @@ WindowOverlay.prototype = {
     },
 
     show: function() {
+        let [child, x, y, mask] = Gdk.Screen.get_default().get_root_window().get_pointer();
+        let actor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE,
+                                                  x, y);
+        if (actor == this._windowClone.actor) {
+            this.closeButton.show();
+        }
         this.title.show();
     },